package behavior.Command;

/**
 * Created by LYJ on 2016/10/20.
 * 具体命令角色(停止命令角色)
 */
public class StopCommand implements Command {
    private AudioPlayer audioPlayer;

    public StopCommand(AudioPlayer audioPlayer) {
        this.audioPlayer = audioPlayer;
    }

    @Override
    public void excute() {
        this.audioPlayer.stop();
    }
}
